home *** CD-ROM | disk | FTP | other *** search
- ; $VER: Install MainActor 1.50 1.2 © Village Tronic Marketing GmbH (22-Feb-94 )
- ; Script to install MainActor 1.50
-
- (complete 0)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;
- ; NAMING SECTION
- ;
- ; first of all I set some vars to file names. This will help me changing
- ; names easely.
- ;
-
- (set #FirmenName "Village Tronic") ; name of the company
- (set #Picasso "Picasso-II") ; name of the board
- (set #Progname "MainActor 1.50") ; name of the game
- (set #RealProgname "MainActor") ; name of the program
-
- (set #defaulttarget "WORK:") ; default destination partition
- (set #defaultdirname "MainActor") ; default destination dir
- (set #defaultassign "MainActor") ; default assign name
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;
- ; LANGUAGE SECTION
- ;
- ; to support more than only one language, there is a special section for
- ; each supported language.
- ;
-
- (if (<> @language "english")
- ((if (<> @language "deutsch")
- ( set @language "english")
- )
- ))
-
- ;==========================================================================
- ; English strings
-
- (if (= @language "english")
- (
- (set default_lang 4)
-
- (set #bad-kick
- (cat "You must use Kickstart 2.0 to install the " #Progname
- ))
-
- (set #introduction
- (cat "This program will install the " #Progname " software for your "
- "graphic board. It takes all necessary steps and takes care "
- "of the operating system version."
- ))
-
- (set #ask-installdir
- (cat "Please choose a directory, where a drawer for " #Progname
- " will be created:"
- ))
-
- (set #ask-installdir-help
- (cat "You have to choose a directory, where a new drawer should be "
- "created by this install script. The new drawer will be created "
- "in the directory you choose. If you do not choose any directory "
- #defaulttarget " will be choosen and a drawer " #defaultdirname
- " will be created".
- ))
-
- (set #copy-program
- (cat "You need to copy the listet files. After copying you can start the "
- "program with a double click on its icon."
- ))
-
- (set #copy-program-help
- (cat "The files will be copied to the drawer you have specified. "
- "To run the program with all features it is good to "
- "have a 32-Bit-CPU and a lot of RAM builtin."
- ))
-
- (set #assign-userstartup
- (cat "To function properly, there must be an assign "
- "placed in the \"s:user-startup\". Shall I do that know?"
- ))
-
- (set #assign-userstartup-help
- (cat "The program looks in special locations for files, it needs to "
- "run. To find them, a special Assign must exist. You can create "
- "the assign each time you want to start the program, or let the "
- "system creating the assign at startup."
- ))
-
- (set #decompress-message
- (cat "Decompressing some files..."
- ))
-
- ))
-
- ;=============================================================================
- ; German strings
-
- (if (= @language "deutsch")
- (
- (set default_lang 2)
-
- (set #bad-kick
- (cat "Sie müssen Kickstart 2.0 zum Installieren der "
- #PicassoSoft " benutzen."
- ))
-
- (set #introduction
- (cat "Mit diesem Programm können Sie die " #Progname "- Software zu Ihrer "
- #Picasso "-"
- "Grafikkarte installieren. Die Installation nimmt alle notwendigen "
- "Schritte vor und beachtet auch die aktuelle Betriebssystemversion.\n"
- ))
-
- (set #ask-installdir
- (cat "Bitte geben Sie den Ort an, in welchem ein neues Verzeichnis "
- "für die Software erzeugt werden soll."
- ))
-
- (set #ask-installdir-help
- (cat "Die " #Progname "-Software wird in ein eigenes Verzeichnis kopiert, das "
- "der Installer selbst anlegt. Wo er dieses Verzeichnis anlegt, können "
- "Sie angeben. \n\nWenn Sie kein Verzeichnis angeben, wird "
- #defaulttarget " als Partition und " #defaultdirname " als "
- "Verzeichnisname ausgewählt. Sie können den Namen des Verzeichnisses "
- "auch nachträglich problemlos ändern."
- ))
-
- (set #copy-program
- (cat "Nun wird alles nötige kopiert. Nach der Installation können Sie das "
- "Programm per Doppelklick auf das Icon starten."
- ))
-
- (set #copy-program-help
- (cat "Die Dateien werden nun in das Verzeichnis kopiert, dessen Ort Sie "
- "ausgewählt haben. "
- "Sie sollten dafür sorgen, "
- "daß Sie soviel Speicher wie möglich "
- "und eine 32-Bit-CPU in Ihrem Rechner haben, um das Programm in "
- "hoher Geschwindigkeit nutzen zu können."
- ))
- (set #assign-userstartup
- (cat "Damit " #RealProgname " korrekt funktioniert, muß ein Assign in die "
- "\"S:User-Startup\" aufgenommen werden. Soll das jetzt automatisch "
- "für Sie erledigt werden?"
- ))
-
- (set #assign-userstartup-help
- (cat #RealProgname " benötigt ein Assign, um seine Module zu finden. "
- "Sie können dieses Assign jedesmal vor dem Start per Hand anlegen, "
- "oder aber dies dem Amiga beim Starten überlassen. Wenn dies "
- "automatisch geschehen soll, muß ein Eintrag in die \"S:User-Startup\""
- " vorgenommen werden."
- ))
-
- (set #decompress-message
- (cat "Entpacke archivierte Dateien..."
- ))
-
- ))
-
-
- ;=============================================================================
- ; make sure we are running under V37
-
- (if (< (/ (getversion) 65536) 37)
- (
- (abort #bad-kick)
- ))
-
- ;******************************************************************
- ;******************* FULL INSTALL *********************************
- ;******************************************************************
-
- ;=============================================================================
- ; say hi!
-
- (welcome)
-
- ;=============================================================================
- ; what we will do the next time together
-
- (message #introduction)
-
- ;=============================================================================
- ; first we will get the dirs we need
-
- (set sourcedir (pathonly @icon))
-
- (set target (askdir (prompt #ask-installdir)
- (help #ask-installdir-help)
- (default #defaulttarget)
- )
- )
-
- (set target (tackon target #defaultdirname))
-
- (set @default-dest target)
-
- ;
- ; if the dir does not exist, we have to create one
- ;
- (if (< (exists target) 2)
- (makedir target (infos))
- )
-
- (complete 5)
-
- ;=============================================================================
- ; next we copy the program
-
- (copyfiles (prompt #copy-program)
- (help #copy-program-help)
- (source sourcedir)
- (dest target)
- (pattern "~((#?.info)|Install#?|Archiv.lha)")
- (infos)
- (confirm "average")
- )
-
- (complete 95)
-
- ;=============================================================================
- ; now we have to decompress some stuff we want to install
-
- (working #decompress-message)
-
- (run (cat (tackon sourcedir "lhx ")
- "-w=" target " x "
- (tackon sourcedir "Archiv.lha")
- )
- )
-
- ;=============================================================================
-
- (set #assign-string (cat "Assign " #defaultassign ": \"" target "\""))
-
- (startup #RealProgname
- (prompt #assign-userstartup)
- (help #assign-userstartup-help)
- (command #assign-string)
- )
-
- (makeassign #defaultassign target)
-
- (complete 100)
-
- ;=============================================================================
- ; "Say goodnight Gracy."
- ; this will be done automaticaly
-
-